*{
  padding: 0;
  margin: 0;
}
body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(0deg, #fbc2eb, #a6c1ee);
}
.container{
  max-width: 1000px;
  position: relative;
  display: flex;
  justify-content: center;
  flex: wrap;
  transition: 0.5s;
  
}
/* 鼠标滑过整体时，模糊并缩小 */
.container:hover .card{
  filter: blur(5px);
  transform: scale(.7);
  
}
/* 鼠标滑过某个卡片时，恢复大小和模糊 */
.container .card:hover {
  filter: blur(0px);
  transform: scale(1);
}
.container .card{
  position: relative;
  width: 250px;
  height: 300px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}

/* 添加空白子元素 */
 .container .card:before{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: 0.5s;
  background: #fff;
}


.container .card .content{
  text-align: center;
  z-index: 2;
  padding: 0 20px;
  transition: 0.5s;
}

.container .card .content h2{
   font-size: 3em;
}
.container .card .content p {
  font-size: 0.9em;
}

.container .card .content a {
  display: inline-block;
  margin-top: 15px;
  padding: 5px 10px;
  background: #262626;
  color: #fff;
  text-decoration: none;
}
/* 鼠标滑过 */
.container .card:hover .content{
  color: #fff;
}
.container .card:hover .content a{
  background: #2196f3;
}
/* 滑过时子元素变形 */
.container .card:hover:before {
  background: #000;
  transform: scaleY(1.15);
  box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
}